home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 February: Technology Seed / Mac Tech Seed Feb '97.toast / OpenDoc 1.2b2c1 / OpenDoc / OpenDoc Utilities / Template Files / SemtIntf.idl < prev   
Encoding:
Text File  |  1997-01-01  |  3.3 KB  |  128 lines  |  [TEXT/MPS ]

  1. #ifdef __PRIVATE__
  2. //#
  3. //#    File:        SemtIntf.idl
  4. //#
  5. //#    Contains:    Class definition for ODCPlusSemanticInterface
  6. //#
  7. //#    Owned by:    Nick Pilch
  8. //#
  9. //#    Copyright:    © 1994 by Apple Computer, Inc., all rights reserved.
  10. //#
  11. //#    Change History (most recent first):
  12. //#
  13. //#         <5>     5/21/95    NP        1249232: Gid rid of TokenInquiryProc.
  14. //#                                    1250474: Change to CallGetMarkTokenProc.
  15. //#                                    1248779: Change API of GetUserToken.
  16. //#         <4>     4/28/95    eeh        1244258: remove IsValid and BaseRemoved
  17. //#                                    override
  18. //#         <3>     4/27/95    eeh        1230798: override IsValid and BaseRemoved
  19. //#         <2>      1/9/95    NP        1194880: SemtIntf name changes.
  20. //#         <1>    11/15/94    NP        first checked in
  21. //#         <7>      9/9/94    NP        1185851: implement scripting. 1184040: API
  22. //#                                    changes.
  23. //#         <6>      7/8/94    NP        Added CallTokenInquiryProc.
  24. //#         <5>      7/5/94    NP        Renamed private field.
  25. //#         <4>     6/29/94    NP        Added overrides.
  26. //#         <3>     6/28/94    NP        Added GetSIHelper.
  27. //#         <2>     6/24/94    NP        First public checkin.
  28. //#         <1>      6/8/94    RR        first checked in
  29. //#         <1>      6/8/94    RR        first checked in
  30. //#         <1>      6/8/94    RR        first checked in
  31. //#         <1>      6/8/94    RR        first checked in
  32. //#         <3>      6/7/94    RR        Privatise change log
  33. //#
  34. //#    To Do:
  35. //#
  36. #else
  37. //#    Copyright:    © 1993 - 1995 by Apple Computer, Inc., all rights reserved.
  38. #endif
  39.  
  40. #ifndef _SEMTINTF_
  41. #define _SEMTINTF_
  42.  
  43. #ifndef _SEMTINTB_
  44. #include "SemtIntB.idl"
  45. #endif
  46.  
  47. //==============================================================================
  48. // Classes defined in this interface
  49. //==============================================================================
  50.  
  51. interface   ODCPlusSemanticInterface;
  52.  
  53. //==============================================================================
  54. // Classes used by this interface
  55. //==============================================================================
  56.  
  57. interface   ODPart;
  58. interface   ODSession;
  59.  
  60. //=====================================================================================
  61. // Implementation Types
  62. //=====================================================================================
  63.  
  64. typedef somToken SIHelperAbs;
  65.  
  66. //==============================================================================
  67. // ODCPlusSemanticInterface
  68. //==============================================================================
  69.  
  70. #ifdef _PLATFORM_MACINTOSH_
  71.  
  72. interface ODCPlusSemanticInterface : ODSemanticInterface
  73. {
  74.     void InitCPlusSemanticInterface(in ODPart base, in SIHelperAbs* helper,
  75.                                 in ODSession session);
  76.  
  77.     SIHelperAbs* GetSIHelper();
  78.  
  79. #ifdef __SOMIDL__
  80.     implementation
  81.     {
  82.           functionprefix = ODCPlusSemanticInterface;
  83.  
  84.         override:
  85.             somInit,
  86.             somUninit,
  87.             CallEventHandler,
  88.             CallCoercionHandler,
  89.             CallObjectAccessor,
  90.             CallPredispatchProc,
  91.             CallCompareProc,
  92.             CallCountProc,
  93.             CallDisposeTokenProc,
  94.             CallGetErrDescProc,
  95.             CallGetMarkTokenProc,
  96.             CallMarkProc,
  97.             CallAdjustMarksProc;
  98.         releaseorder:
  99.             InitCPlusSemanticInterface,
  100.             GetSIHelper;
  101.  
  102.         #ifdef    __PRIVATE__
  103.         passthru    C_xih    =    "
  104.         ""
  105.         "#include    \"SIHelper.h\""
  106.         ""
  107.         "struct OSLContext;"                    //#    figure out where to put
  108.         "typedef OSLContext ODOSLContext;"        //#    this!
  109.         "const ODSize    kOSLContextSize = sizeof(ODOSLContext*);"
  110.         "";
  111.  
  112.         SIHelperAbs*    fHelper;
  113.         #endif
  114.  
  115.         passthru    C_xh    =    "
  116.         ""
  117.         "class    SIHelperAbs;"
  118.         "";
  119.     };
  120. #endif //# __SOMIDL__
  121. };
  122.  
  123.  
  124. #endif //# _PLATFORM_MACINTOSH_
  125.  
  126.  
  127. #endif //# _SEMTINTF_
  128.